import { _decorator, Component, math, Node, RigidBody2D, Vec3 } from 'cc';
import { PlayerStateMachine } from './PlayerStateMachine';
import { PlayerIdleState } from './PlayerIdleState';
import { Player } from './Player';
const { ccclass, property } = _decorator;

@ccclass('PlayerState')
export class PlayerState {

    protected player: Player;
    protected stateMachine: PlayerStateMachine;
    protected rb: RigidBody2D;


    constructor(_player: Player, _stateMachine: PlayerStateMachine) {
        this.player = _player;
        this.stateMachine = _stateMachine;
    }

    public enter(): void {
        this.rb = this.player.rb;
    }

    public update(dt: number): void {

    }

    public exit(): void {

    }

}


